package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="YSZB_LJMX"
 *     
*/
public class YszbLjmx implements Serializable {

    /** identifier field */
    private String ljmxbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private BigDecimal ysje;

    /** persistent field */
    private String cfztbh;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public YszbLjmx(String ljmxbh, String nd, BigDecimal ysje, String cfztbh, String dwbh, String zt1, String zt2) {
        this.ljmxbh = ljmxbh;
        this.nd = nd;
        this.ysje = ysje;
        this.cfztbh = cfztbh;
        this.dwbh = dwbh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public YszbLjmx() {
    }

    /** minimal constructor */
    public YszbLjmx(String ljmxbh, String nd, BigDecimal ysje, String cfztbh, String dwbh) {
        this.ljmxbh = ljmxbh;
        this.nd = nd;
        this.ysje = ysje;
        this.cfztbh = cfztbh;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="LJMXBH"
     *         
     */
    public String getLjmxbh() {
        return this.ljmxbh;
    }

    public void setLjmxbh(String ljmxbh) {
        this.ljmxbh = ljmxbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="YSJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getYsje() {
        return this.ysje;
    }

    public void setYsje(BigDecimal ysje) {
        this.ysje = ysje;
    }

    /** 
     *            @hibernate.property
     *             column="CFZTBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getCfztbh() {
        return this.cfztbh;
    }

    public void setCfztbh(String cfztbh) {
        this.cfztbh = cfztbh;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ljmxbh", getLjmxbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof YszbLjmx) ) return false;
        YszbLjmx castOther = (YszbLjmx) other;
        return new EqualsBuilder()
            .append(this.getLjmxbh(), castOther.getLjmxbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getLjmxbh())
            .toHashCode();
    }

}
